.tab {
    margin: 20px auto;
    width: 600px;
}

.tab .header {
    position: relative;
    top: 1px;
}

.tab .header li {
    float: left;
    margin-right: 10px;
    padding: 0 10px;
    line-height: 35px;
    cursor: pointer;
    border: 1px solid #AAA;
}

.tab .header li.active {
    border-bottom-color: #FFF;
}

.tab .content {
    display: none;
    height: 150px;
    line-height: 150px;
    text-align: center;
    border: 1px solid #AAA;
}

.tab .content.active {
    display: block;
}